package com.lightsaber.trade.core.web;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.lightsaber.trade.core.entity.sysparam.SysParamete;
import com.lightsaber.trade.core.service.sysparam.SysParameteManager;
import com.opensymphony.xwork2.ActionSupport;

public class BaseAction extends ActionSupport {

    private static final long serialVersionUID = 3867680441524577498L;

    public static final String LOGIN_ID = "loginId";
    public static final String ROLE_CODE = "roleCode";
    public static final String ROLE_LIST = "roleList";

    public static final String RELOAD = "reload";

    public static final String PROCESSED_SUCCESS = "processed.success";

    @Autowired
    private SysParameteManager sysParameteManager;

    public List<SysParamete> getParamsByType(String type) {
        return sysParameteManager.findByType(type);
    }
}
